﻿using System;

namespace WinRT.SIP.UILogic.Models
{
    public class ContactInfo
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string PhoneNumber { get; set; }

        public string DisplayName
        {
            get
            {
                if (String.IsNullOrEmpty(FirstName) && String.IsNullOrEmpty(LastName))
                {
                    return PhoneNumber;
                }

                return (FirstName + LastName).Trim();
            }
        }
    }
}
